rational function given three different i